{% extends 'configmanager/__base__.html' %}
{% block title %}历史记录明细 | {% endblock %}
{% block search_display %}none{% endblock %}
{% block content %}

    <ol class="breadcrumb">
        <li><a href="{% url 'configmanager:configlist' %}">站点配置列表</a></li>
        <li><a href="{% url 'configmanager:confighistory' confighistorydetail.id %}">历史记录列表</a></li>
        <li class="active">历史记录明细</li>
    </ol><br>

    <div id="whole" class="container-fluid table-responsive">
        <form action="{% url 'configmanager:configrollback' confighistorydetail.history_id %}" method="post">
            {% csrf_token %}
            <table class="table table-striped table-hover table-condensed">
                <tbody>
                <tr>
                    <th>站点名</th>
                    <td>{{ confighistorydetail.get_site_fullname }}</td>
                </tr>
                <tr>
                    <th>配置文件名</th>
                    <td>{{ confighistorydetail.filename }}</td>
                </tr>
                <tr>
                    <th>配置内容</th>
                    <td>
                        <textarea name="configcontent" id="id_configcontent" rows="30"
                                  cols="150">{{ confighistorydetail.content }}</textarea>
                    </td>
                </tr>
                </tbody>
            </table>
            <input class="btn btn-warning" type="submit" name="config-rollback" value="恢复"/>
            <input class="btn btn-default" type="submit" name="config-goback" value="返回"/>
        </form>
    </div>

{% endblock %}
